package com.shuang.pojo;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class DbReceiveInformationExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public DbReceiveInformationExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andRiIdIsNull() {
            addCriterion("ri_id is null");
            return (Criteria) this;
        }

        public Criteria andRiIdIsNotNull() {
            addCriterion("ri_id is not null");
            return (Criteria) this;
        }

        public Criteria andRiIdEqualTo(Long value) {
            addCriterion("ri_id =", value, "riId");
            return (Criteria) this;
        }

        public Criteria andRiIdNotEqualTo(Long value) {
            addCriterion("ri_id <>", value, "riId");
            return (Criteria) this;
        }

        public Criteria andRiIdGreaterThan(Long value) {
            addCriterion("ri_id >", value, "riId");
            return (Criteria) this;
        }

        public Criteria andRiIdGreaterThanOrEqualTo(Long value) {
            addCriterion("ri_id >=", value, "riId");
            return (Criteria) this;
        }

        public Criteria andRiIdLessThan(Long value) {
            addCriterion("ri_id <", value, "riId");
            return (Criteria) this;
        }

        public Criteria andRiIdLessThanOrEqualTo(Long value) {
            addCriterion("ri_id <=", value, "riId");
            return (Criteria) this;
        }

        public Criteria andRiIdIn(List<Long> values) {
            addCriterion("ri_id in", values, "riId");
            return (Criteria) this;
        }

        public Criteria andRiIdNotIn(List<Long> values) {
            addCriterion("ri_id not in", values, "riId");
            return (Criteria) this;
        }

        public Criteria andRiIdBetween(Long value1, Long value2) {
            addCriterion("ri_id between", value1, value2, "riId");
            return (Criteria) this;
        }

        public Criteria andRiIdNotBetween(Long value1, Long value2) {
            addCriterion("ri_id not between", value1, value2, "riId");
            return (Criteria) this;
        }

        public Criteria andRiNameIsNull() {
            addCriterion("ri_name is null");
            return (Criteria) this;
        }

        public Criteria andRiNameIsNotNull() {
            addCriterion("ri_name is not null");
            return (Criteria) this;
        }

        public Criteria andRiNameEqualTo(String value) {
            addCriterion("ri_name =", value, "riName");
            return (Criteria) this;
        }

        public Criteria andRiNameNotEqualTo(String value) {
            addCriterion("ri_name <>", value, "riName");
            return (Criteria) this;
        }

        public Criteria andRiNameGreaterThan(String value) {
            addCriterion("ri_name >", value, "riName");
            return (Criteria) this;
        }

        public Criteria andRiNameGreaterThanOrEqualTo(String value) {
            addCriterion("ri_name >=", value, "riName");
            return (Criteria) this;
        }

        public Criteria andRiNameLessThan(String value) {
            addCriterion("ri_name <", value, "riName");
            return (Criteria) this;
        }

        public Criteria andRiNameLessThanOrEqualTo(String value) {
            addCriterion("ri_name <=", value, "riName");
            return (Criteria) this;
        }

        public Criteria andRiNameLike(String value) {
            addCriterion("ri_name like", value, "riName");
            return (Criteria) this;
        }

        public Criteria andRiNameNotLike(String value) {
            addCriterion("ri_name not like", value, "riName");
            return (Criteria) this;
        }

        public Criteria andRiNameIn(List<String> values) {
            addCriterion("ri_name in", values, "riName");
            return (Criteria) this;
        }

        public Criteria andRiNameNotIn(List<String> values) {
            addCriterion("ri_name not in", values, "riName");
            return (Criteria) this;
        }

        public Criteria andRiNameBetween(String value1, String value2) {
            addCriterion("ri_name between", value1, value2, "riName");
            return (Criteria) this;
        }

        public Criteria andRiNameNotBetween(String value1, String value2) {
            addCriterion("ri_name not between", value1, value2, "riName");
            return (Criteria) this;
        }

        public Criteria andRiAddressIsNull() {
            addCriterion("ri_address is null");
            return (Criteria) this;
        }

        public Criteria andRiAddressIsNotNull() {
            addCriterion("ri_address is not null");
            return (Criteria) this;
        }

        public Criteria andRiAddressEqualTo(String value) {
            addCriterion("ri_address =", value, "riAddress");
            return (Criteria) this;
        }

        public Criteria andRiAddressNotEqualTo(String value) {
            addCriterion("ri_address <>", value, "riAddress");
            return (Criteria) this;
        }

        public Criteria andRiAddressGreaterThan(String value) {
            addCriterion("ri_address >", value, "riAddress");
            return (Criteria) this;
        }

        public Criteria andRiAddressGreaterThanOrEqualTo(String value) {
            addCriterion("ri_address >=", value, "riAddress");
            return (Criteria) this;
        }

        public Criteria andRiAddressLessThan(String value) {
            addCriterion("ri_address <", value, "riAddress");
            return (Criteria) this;
        }

        public Criteria andRiAddressLessThanOrEqualTo(String value) {
            addCriterion("ri_address <=", value, "riAddress");
            return (Criteria) this;
        }

        public Criteria andRiAddressLike(String value) {
            addCriterion("ri_address like", value, "riAddress");
            return (Criteria) this;
        }

        public Criteria andRiAddressNotLike(String value) {
            addCriterion("ri_address not like", value, "riAddress");
            return (Criteria) this;
        }

        public Criteria andRiAddressIn(List<String> values) {
            addCriterion("ri_address in", values, "riAddress");
            return (Criteria) this;
        }

        public Criteria andRiAddressNotIn(List<String> values) {
            addCriterion("ri_address not in", values, "riAddress");
            return (Criteria) this;
        }

        public Criteria andRiAddressBetween(String value1, String value2) {
            addCriterion("ri_address between", value1, value2, "riAddress");
            return (Criteria) this;
        }

        public Criteria andRiAddressNotBetween(String value1, String value2) {
            addCriterion("ri_address not between", value1, value2, "riAddress");
            return (Criteria) this;
        }

        public Criteria andRiPhoneIsNull() {
            addCriterion("ri_phone is null");
            return (Criteria) this;
        }

        public Criteria andRiPhoneIsNotNull() {
            addCriterion("ri_phone is not null");
            return (Criteria) this;
        }

        public Criteria andRiPhoneEqualTo(String value) {
            addCriterion("ri_phone =", value, "riPhone");
            return (Criteria) this;
        }

        public Criteria andRiPhoneNotEqualTo(String value) {
            addCriterion("ri_phone <>", value, "riPhone");
            return (Criteria) this;
        }

        public Criteria andRiPhoneGreaterThan(String value) {
            addCriterion("ri_phone >", value, "riPhone");
            return (Criteria) this;
        }

        public Criteria andRiPhoneGreaterThanOrEqualTo(String value) {
            addCriterion("ri_phone >=", value, "riPhone");
            return (Criteria) this;
        }

        public Criteria andRiPhoneLessThan(String value) {
            addCriterion("ri_phone <", value, "riPhone");
            return (Criteria) this;
        }

        public Criteria andRiPhoneLessThanOrEqualTo(String value) {
            addCriterion("ri_phone <=", value, "riPhone");
            return (Criteria) this;
        }

        public Criteria andRiPhoneLike(String value) {
            addCriterion("ri_phone like", value, "riPhone");
            return (Criteria) this;
        }

        public Criteria andRiPhoneNotLike(String value) {
            addCriterion("ri_phone not like", value, "riPhone");
            return (Criteria) this;
        }

        public Criteria andRiPhoneIn(List<String> values) {
            addCriterion("ri_phone in", values, "riPhone");
            return (Criteria) this;
        }

        public Criteria andRiPhoneNotIn(List<String> values) {
            addCriterion("ri_phone not in", values, "riPhone");
            return (Criteria) this;
        }

        public Criteria andRiPhoneBetween(String value1, String value2) {
            addCriterion("ri_phone between", value1, value2, "riPhone");
            return (Criteria) this;
        }

        public Criteria andRiPhoneNotBetween(String value1, String value2) {
            addCriterion("ri_phone not between", value1, value2, "riPhone");
            return (Criteria) this;
        }

        public Criteria andRiZipCodeIsNull() {
            addCriterion("ri_zip_code is null");
            return (Criteria) this;
        }

        public Criteria andRiZipCodeIsNotNull() {
            addCriterion("ri_zip_code is not null");
            return (Criteria) this;
        }

        public Criteria andRiZipCodeEqualTo(String value) {
            addCriterion("ri_zip_code =", value, "riZipCode");
            return (Criteria) this;
        }

        public Criteria andRiZipCodeNotEqualTo(String value) {
            addCriterion("ri_zip_code <>", value, "riZipCode");
            return (Criteria) this;
        }

        public Criteria andRiZipCodeGreaterThan(String value) {
            addCriterion("ri_zip_code >", value, "riZipCode");
            return (Criteria) this;
        }

        public Criteria andRiZipCodeGreaterThanOrEqualTo(String value) {
            addCriterion("ri_zip_code >=", value, "riZipCode");
            return (Criteria) this;
        }

        public Criteria andRiZipCodeLessThan(String value) {
            addCriterion("ri_zip_code <", value, "riZipCode");
            return (Criteria) this;
        }

        public Criteria andRiZipCodeLessThanOrEqualTo(String value) {
            addCriterion("ri_zip_code <=", value, "riZipCode");
            return (Criteria) this;
        }

        public Criteria andRiZipCodeLike(String value) {
            addCriterion("ri_zip_code like", value, "riZipCode");
            return (Criteria) this;
        }

        public Criteria andRiZipCodeNotLike(String value) {
            addCriterion("ri_zip_code not like", value, "riZipCode");
            return (Criteria) this;
        }

        public Criteria andRiZipCodeIn(List<String> values) {
            addCriterion("ri_zip_code in", values, "riZipCode");
            return (Criteria) this;
        }

        public Criteria andRiZipCodeNotIn(List<String> values) {
            addCriterion("ri_zip_code not in", values, "riZipCode");
            return (Criteria) this;
        }

        public Criteria andRiZipCodeBetween(String value1, String value2) {
            addCriterion("ri_zip_code between", value1, value2, "riZipCode");
            return (Criteria) this;
        }

        public Criteria andRiZipCodeNotBetween(String value1, String value2) {
            addCriterion("ri_zip_code not between", value1, value2, "riZipCode");
            return (Criteria) this;
        }

        public Criteria andUIdIsNull() {
            addCriterion("u_id is null");
            return (Criteria) this;
        }

        public Criteria andUIdIsNotNull() {
            addCriterion("u_id is not null");
            return (Criteria) this;
        }

        public Criteria andUIdEqualTo(Long value) {
            addCriterion("u_id =", value, "uId");
            return (Criteria) this;
        }

        public Criteria andUIdNotEqualTo(Long value) {
            addCriterion("u_id <>", value, "uId");
            return (Criteria) this;
        }

        public Criteria andUIdGreaterThan(Long value) {
            addCriterion("u_id >", value, "uId");
            return (Criteria) this;
        }

        public Criteria andUIdGreaterThanOrEqualTo(Long value) {
            addCriterion("u_id >=", value, "uId");
            return (Criteria) this;
        }

        public Criteria andUIdLessThan(Long value) {
            addCriterion("u_id <", value, "uId");
            return (Criteria) this;
        }

        public Criteria andUIdLessThanOrEqualTo(Long value) {
            addCriterion("u_id <=", value, "uId");
            return (Criteria) this;
        }

        public Criteria andUIdIn(List<Long> values) {
            addCriterion("u_id in", values, "uId");
            return (Criteria) this;
        }

        public Criteria andUIdNotIn(List<Long> values) {
            addCriterion("u_id not in", values, "uId");
            return (Criteria) this;
        }

        public Criteria andUIdBetween(Long value1, Long value2) {
            addCriterion("u_id between", value1, value2, "uId");
            return (Criteria) this;
        }

        public Criteria andUIdNotBetween(Long value1, Long value2) {
            addCriterion("u_id not between", value1, value2, "uId");
            return (Criteria) this;
        }

        public Criteria andRiCreateTimeIsNull() {
            addCriterion("ri_create_time is null");
            return (Criteria) this;
        }

        public Criteria andRiCreateTimeIsNotNull() {
            addCriterion("ri_create_time is not null");
            return (Criteria) this;
        }

        public Criteria andRiCreateTimeEqualTo(Date value) {
            addCriterion("ri_create_time =", value, "riCreateTime");
            return (Criteria) this;
        }

        public Criteria andRiCreateTimeNotEqualTo(Date value) {
            addCriterion("ri_create_time <>", value, "riCreateTime");
            return (Criteria) this;
        }

        public Criteria andRiCreateTimeGreaterThan(Date value) {
            addCriterion("ri_create_time >", value, "riCreateTime");
            return (Criteria) this;
        }

        public Criteria andRiCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("ri_create_time >=", value, "riCreateTime");
            return (Criteria) this;
        }

        public Criteria andRiCreateTimeLessThan(Date value) {
            addCriterion("ri_create_time <", value, "riCreateTime");
            return (Criteria) this;
        }

        public Criteria andRiCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("ri_create_time <=", value, "riCreateTime");
            return (Criteria) this;
        }

        public Criteria andRiCreateTimeIn(List<Date> values) {
            addCriterion("ri_create_time in", values, "riCreateTime");
            return (Criteria) this;
        }

        public Criteria andRiCreateTimeNotIn(List<Date> values) {
            addCriterion("ri_create_time not in", values, "riCreateTime");
            return (Criteria) this;
        }

        public Criteria andRiCreateTimeBetween(Date value1, Date value2) {
            addCriterion("ri_create_time between", value1, value2, "riCreateTime");
            return (Criteria) this;
        }

        public Criteria andRiCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("ri_create_time not between", value1, value2, "riCreateTime");
            return (Criteria) this;
        }

        public Criteria andRiUpdateTimeIsNull() {
            addCriterion("ri_update_time is null");
            return (Criteria) this;
        }

        public Criteria andRiUpdateTimeIsNotNull() {
            addCriterion("ri_update_time is not null");
            return (Criteria) this;
        }

        public Criteria andRiUpdateTimeEqualTo(Date value) {
            addCriterion("ri_update_time =", value, "riUpdateTime");
            return (Criteria) this;
        }

        public Criteria andRiUpdateTimeNotEqualTo(Date value) {
            addCriterion("ri_update_time <>", value, "riUpdateTime");
            return (Criteria) this;
        }

        public Criteria andRiUpdateTimeGreaterThan(Date value) {
            addCriterion("ri_update_time >", value, "riUpdateTime");
            return (Criteria) this;
        }

        public Criteria andRiUpdateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("ri_update_time >=", value, "riUpdateTime");
            return (Criteria) this;
        }

        public Criteria andRiUpdateTimeLessThan(Date value) {
            addCriterion("ri_update_time <", value, "riUpdateTime");
            return (Criteria) this;
        }

        public Criteria andRiUpdateTimeLessThanOrEqualTo(Date value) {
            addCriterion("ri_update_time <=", value, "riUpdateTime");
            return (Criteria) this;
        }

        public Criteria andRiUpdateTimeIn(List<Date> values) {
            addCriterion("ri_update_time in", values, "riUpdateTime");
            return (Criteria) this;
        }

        public Criteria andRiUpdateTimeNotIn(List<Date> values) {
            addCriterion("ri_update_time not in", values, "riUpdateTime");
            return (Criteria) this;
        }

        public Criteria andRiUpdateTimeBetween(Date value1, Date value2) {
            addCriterion("ri_update_time between", value1, value2, "riUpdateTime");
            return (Criteria) this;
        }

        public Criteria andRiUpdateTimeNotBetween(Date value1, Date value2) {
            addCriterion("ri_update_time not between", value1, value2, "riUpdateTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}